package com.apes.crm.vip.base;

import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @author HuJianlin
 * @create 2018-03-16 17:04
 */
public interface VipLevelRepository extends CustomRepository<VipLevel, String> {
    @Query("SELECT T FROM VipLevel T WHERE T.id like %:value% or T.name like %:value%")
    Page<VipLevel> find(@Param("value") String value, Pageable pageable);
}
